import torch.nn as nn
import torch
import torch.nn.functional as F


#  定义网络和模型 三层的网络
class MLP(torch.nn.Module):
    def __init__(self):
        super(MLP, self).__init__()
        self.n_hidden = nn.Linear(2, 4)
        self.out = nn.Linear(4, 3)

    def forward(self, x):
        x= self.n_hidden(x)
        x = torch.relu(x)
        x = self.out(x)
        return x